//
//  Homeview.m
//  geiTA
//
//  Created by duyan on 14-11-20.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Homeview.h"

@implementation Homeview
- (void)dealloc
{
    [_timer release];
    [_people release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.people = [[UIImageView alloc]initWithFrame:CGRectMake(20, 20, frame.size.width / 4, frame.size.height - 20)];
        [_people setBackgroundColor:[UIColor blackColor]];
        self.timer = [[UILabel alloc]initWithFrame:CGRectMake(frame.size.width / 4 + 40, frame.size.height / 4 + 10, frame.size.width * 5 / 9, frame.size.height * 3 / 5)];
        [self.timer setFont:[UIFont systemFontOfSize:14]];
        [_timer setBackgroundColor:[UIColor greenColor]];
        [self addSubview:_timer];
        [self addSubview:_people];
        [_people release];
        [_timer release];
    }
    return self;
}






@end
